package com.csw.foodRecommendation.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.csw.foodRecommendation.dao.AdminDao;
import com.csw.foodRecommendation.entity.Admin;

/**
 * @author 1
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class AdminServiceImpl implements AdminService {
	@Autowired
	private AdminDao adminDao;

	@Override
	public Admin queryByNameAndPassword(String name, String password) {
		return adminDao.queryByNameAndPassword(name, password);
	}
}
